﻿using AbpVnext_Module.Model;
using LiteDB;
using Microsoft.EntityFrameworkCore;
using Volo.Abp.Data;
using Volo.Abp.EntityFrameworkCore;
using static Microsoft.EntityFrameworkCore.DbLoggerCategory.Database;

namespace AbpVnext_Module
{
    public class ProductDbContext : DbContext
    {
        public ProductDbContext(DbContextOptions options) : base(options)
        {

        }

        /// <summary>
        /// 配置商品模型
        /// </summary>
        public DbSet<Product> Product { set; get; }
    }

    ///// <summary>
    ///// Abp DbContext
    ///// DefaultConnection 数据库连接字符串
    ///// </summary>
    //[ConnectionStringName("DefaultConnection")]
    //public class ProjectDbContext : AbpDbContext<ProjectDbContext>
    //{
    //    public ProjectDbContext(DbContextOptions<ProjectDbContext> options) : base(options)
    //    {
            
    //    }

    //    /// <summary>
    //    /// 配置商品模型
    //    /// </summary>
    //    public DbSet<Product> Product { set; get; }

    //    public DbSet<ProductImage> productImages { set; get; }

    //    public DbSet<ProductImageOrder> ProductImageOrder { set; get; }

    //    //public DbSet<Order> Order { get; set; }
    //}
}
